/*
 * @Descripttion:
 * @version:
 * @Author: ChenXiang
 * @Date: 2021-05-12 22:46:40
 * @LastEditors: ChenXiang
 * @LastEditTime: 2021-09-28 15:25:51
 */
import React, { useState, useEffect } from "react";
import Switch from "@/components/Switch";

export default function App() {
  const [visible, setVisible] = useState(false)
  useEffect(() => {
    setTimeout(() => {
      setVisible(!visible)
    }, 1000)
  }, [])
  return (
    <div className="App">
      <Switch
        checked={visible}
        // defaultChecked={true}
        onChange={(e) => {

        }} />
    </div>
  );
}
